/*
 * jlb
 */
package com.jlb.user.service;

import java.util.List;
import java.util.Map;

import com.jlb.core.base.BaseSV;
import com.jlb.user.entity.UserMinerWorkRecordState;
import com.jlb.user.entity.UserMinerWorkRecord;

/**
 * 矿机挖金兰宝记录
 *
 * @author jlb
 */
public interface UserMinerWorkRecordSV extends BaseSV<UserMinerWorkRecord, Long> {


    /**
     * 加载一个对象UserMinerWorkRecord
     *
     * @param id
     * @return UserMinerWorkRecord
     */
    UserMinerWorkRecord load(java.lang.Long id);

    /**
     * 加载一个对象UserMinerWorkRecord 通过id
     *
     * @param id
     * @return UserMinerWorkRecord
     */
    UserMinerWorkRecord loadById(java.lang.Long id);


    /**
     * 根据主键id,oldStates 共同更新 UserMinerWorkRecord 的状态到newState状态
     *
     * @param id
     * @param newState  新状态
     * @param oldStates 旧状态集合
     */
    void updateStateById(java.lang.Long id, UserMinerWorkRecordState newState, UserMinerWorkRecordState... oldStates);

    /**
     * 根据主键id 更新 UserMinerWorkRecord 的状态到另一个状态
     *
     * @param id
     * @param state 状态
     */
    void updateById(java.lang.Long id, UserMinerWorkRecordState state);


    /**
     * 删除对象UserMinerWorkRecord
     *
     * @param id
     * @return UserMinerWorkRecord
     */
    void delete(java.lang.Long id);


    /**
     * 查询UserMinerWorkRecord分页
     *
     * @param userMinerWorkRecord 矿机挖金兰宝记录
     * @param offset              查询开始行
     * @param limit               查询行数
     * @return List<UserMinerWorkRecord>
     */
    List<UserMinerWorkRecord> list(UserMinerWorkRecord userMinerWorkRecord, int offset, int limit);

    int count(UserMinerWorkRecord userMinerWorkRecord);

    /**
     * 查询UserMinerWorkRecord分页
     *
     * @param id
     * @param offset 查询开始行
     * @param limit  查询行数
     * @return List<UserMinerWorkRecord>
     */
    List<UserMinerWorkRecord> list(java.lang.Long id, int offset, int limit);

    int count(java.lang.Long id);


}
